//
//  UIView+TapGestureRecognizer.m
//  INMOTION
//
//  Created by 孙凯旋 on 14-8-7.
//  Copyright (c) 2014年 Inmotion. All rights reserved.
//

#import "UIView+TapGestureRecognizer.h"

@implementation UIView (TapGestureRecognizer)

- (void)addTapGestureRecognizerWithTarget:(id)target andSelector:(SEL)selector {
    self.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:target action:selector];
    tap.numberOfTapsRequired = 1;
    tap.numberOfTouchesRequired = 1;
    [self addGestureRecognizer:tap];
}

@end
